package ecnu.ecgbackend.service;

import ecnu.ecgbackend.entity.Developer;
import ecnu.ecgbackend.entity.Doctor;
import ecnu.ecgbackend.entity.Patient;
import ecnu.ecgbackend.entity.User;
import ecnu.ecgbackend.utils.LoginResult;
import ecnu.ecgbackend.utils.Result;
import ecnu.ecgbackend.vo.PatientVo;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Map;

public interface DiagnosisAccountService {
    Map<String,Object> login(User user);
    Boolean logout(HttpServletRequest request, HttpServletResponse response);
    Boolean logoff();
    Result register(User user,String code);
    boolean updatePassword(String username,String password);
}
